<template>
  <div class="container">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>首页</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card class="box-card" id="mybg">

      <el-calendar v-model="value">
      </el-calendar>

    </el-card>

  </div>
</template>

<script>
    // 引入动态背景的js 由于使用本地js文件会报错 然后引入的在线链接


    export default {
        name: 'HomeIndex',
        components: {},
        props: {},
        data() {
            return {
                value: new Date()
            }
        },
        created() {

        },
        mounted() {
            this.createBg()
        },
        methods: {
            createBg() {
                /* eslint-disable */
                // console.log(VANTA)
                VANTA.BIRDS({
                    el: '#mybg',
                    mouseControls: true,
                    touchControls: true,
                    gyroControls: false,
                    minHeight: 200.00,
                    minWidth: 200.00,
                    scale: 1.00,
                    scaleMobile: 1.00,
                    // backgroundColor: 0x70e2f
                    backgroundColor: '#fff'
                })
            }
        }
    }
</script>

<style scoped lang="less">
    .container {
        height: 100%;
    }
    
    .box-card {
        width: 100%;
        height: 98%;
    }
    
    // vanta画布圆角去除
    /deep/.vanta-canvas {
        border-radius: 0px;
    }
    
    // 日历组件透明
    .el-calendar {
        background-color: rgba(255, 255, 255, 0);
    }
    
    // 日期选择状态半透明
    /deep/.el-calendar-table td.is-selected {
        background-color: rgba(242, 248, 254, 0.5);
    }
    
    // 日期触碰状态半透明
    /deep/.el-calendar-table .el-calendar-day:hover {
        background-color: rgba(242, 248, 254, 0.5);
    }
    
    // 右上角按钮透明
    /deep/.el-button {
        background: rgba(255, 255, 255, 0);
        color: #000;
    }
</style>